package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VehicleFaultMapper;
import com.ruoyi.system.domain.VehicleFault;
import com.ruoyi.system.service.IVehicleFaultService;

/**
 * jinggaoService业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-24
 */
@Service
public class VehicleFaultServiceImpl implements IVehicleFaultService 
{
    @Autowired
    private VehicleFaultMapper vehicleFaultMapper;

    /**
     * 查询jinggao
     * 
     * @param vehicleId jinggao主键
     * @return jinggao
     */
    @Override
    public VehicleFault selectVehicleFaultByVehicleId(Long vehicleId)
    {
        return vehicleFaultMapper.selectVehicleFaultByVehicleId(vehicleId);
    }

    /**
     * 查询jinggao列表
     * 
     * @param vehicleFault jinggao
     * @return jinggao
     */
    @Override
    public List<VehicleFault> selectVehicleFaultList(VehicleFault vehicleFault)
    {
        return vehicleFaultMapper.selectVehicleFaultList(vehicleFault);
    }

    /**
     * 新增jinggao
     * 
     * @param vehicleFault jinggao
     * @return 结果
     */
    @Override
    public int insertVehicleFault(VehicleFault vehicleFault)
    {
        return vehicleFaultMapper.insertVehicleFault(vehicleFault);
    }

    /**
     * 修改jinggao
     * 
     * @param vehicleFault jinggao
     * @return 结果
     */
    @Override
    public int updateVehicleFault(VehicleFault vehicleFault)
    {
        return vehicleFaultMapper.updateVehicleFault(vehicleFault);
    }

    /**
     * 批量删除jinggao
     * 
     * @param vehicleIds 需要删除的jinggao主键
     * @return 结果
     */
    @Override
    public int deleteVehicleFaultByVehicleIds(Long[] vehicleIds)
    {
        return vehicleFaultMapper.deleteVehicleFaultByVehicleIds(vehicleIds);
    }

    /**
     * 删除jinggao信息
     * 
     * @param vehicleId jinggao主键
     * @return 结果
     */
    @Override
    public int deleteVehicleFaultByVehicleId(Long vehicleId)
    {
        return vehicleFaultMapper.deleteVehicleFaultByVehicleId(vehicleId);
    }
}
